<ng-container *ngIf="loadMode == 1; else embeddedView;">
    <div>
        <ion-infinite-scroll [disabled]="!isInfinite" (ionInfinite)="onMore($event)">
            <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="正在加载..."></ion-infinite-scroll-content>
        </ion-infinite-scroll>
    </div>
</ng-container>
<ng-template #embeddedView>
    <ion-toolbar class="app-load-more" [hidden]="!isInfinite">
        <ion-text [hidden]="isSendingRequest || !isInfinite" (click)="onMore($event)" color="primary">点击加载更多</ion-text>
        <div [hidden]="!isSendingRequest">
            <ion-spinner name="dots" color="primary"></ion-spinner>
        </div>
        <!-- <ion-text [hidden]="isInfinite" color="primary">我是有底线的!</ion-text> -->
    </ion-toolbar>
</ng-template>